package svc

import (
	"doc/api/internal/config"
	"doc/doc_srv/doc"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config config.Config
	DocSrv doc.Doc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		DocSrv: doc.NewDoc(zrpc.MustNewClient(c.DocSrv)),
	}
}
